package com.bw.entity;

import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

public class AddTable {
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date waifatime;//外发时间
    private String waifaid;//外发编号
    private Integer empid;//员工编号
    private String empname;//员工姓名

    private String shopid;//商品编号
    @NotBlank(message = "请选择商品编号")
    private String shopname;//商品名称
    private String xinghao;//型号
    private String guige;//规格
    private BigDecimal price;//价格
    @NotNull(message = "数量不能为空")
    private Integer num;//数量
    private BigDecimal jine;//金额
    private String beizhu;//备注
    private Integer lx;//类型
    private String neirong;//内容
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date mintime;//
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date maxtime;

    @Override
    public String toString() {
        return "AddTable{" +
                "waifatime=" + waifatime +
                ", waifaid='" + waifaid + '\'' +
                ", empid=" + empid +
                ", empname='" + empname + '\'' +
                ", shopid='" + shopid + '\'' +
                ", shopname='" + shopname + '\'' +
                ", xinghao='" + xinghao + '\'' +
                ", guige='" + guige + '\'' +
                ", price=" + price +
                ", num=" + num +
                ", jine=" + jine +
                ", beizhu='" + beizhu + '\'' +
                ", lx=" + lx +
                ", neirong='" + neirong + '\'' +
                ", mintime=" + mintime +
                ", maxtime=" + maxtime +
                '}';
    }

    public Date getWaifatime() {
        return waifatime;
    }

    public void setWaifatime(Date waifatime) {
        this.waifatime = waifatime;
    }

    public String getWaifaid() {
        return waifaid;
    }

    public void setWaifaid(String waifaid) {
        this.waifaid = waifaid;
    }

    public Integer getEmpid() {
        return empid;
    }

    public void setEmpid(Integer empid) {
        this.empid = empid;
    }

    public String getEmpname() {
        return empname;
    }

    public void setEmpname(String empname) {
        this.empname = empname;
    }

    public String getShopid() {
        return shopid;
    }

    public void setShopid(String shopid) {
        this.shopid = shopid;
    }

    public String getShopname() {
        return shopname;
    }

    public void setShopname(String shopname) {
        this.shopname = shopname;
    }

    public String getXinghao() {
        return xinghao;
    }

    public void setXinghao(String xinghao) {
        this.xinghao = xinghao;
    }

    public String getGuige() {
        return guige;
    }

    public void setGuige(String guige) {
        this.guige = guige;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public BigDecimal getJine() {
        return jine;
    }

    public void setJine(BigDecimal jine) {
        this.jine = jine;
    }

    public String getBeizhu() {
        return beizhu;
    }

    public void setBeizhu(String beizhu) {
        this.beizhu = beizhu;
    }

    public Integer getLx() {
        return lx;
    }

    public void setLx(Integer lx) {
        this.lx = lx;
    }

    public String getNeirong() {
        return neirong;
    }

    public void setNeirong(String neirong) {
        this.neirong = neirong;
    }

    public Date getMintime() {
        return mintime;
    }

    public void setMintime(Date mintime) {
        this.mintime = mintime;
    }

    public Date getMaxtime() {
        return maxtime;
    }

    public void setMaxtime(Date maxtime) {
        this.maxtime = maxtime;
    }
}
